package com.air.cloud;

import com.air.cloud.gateway.AccessFilter;
import com.netflix.zuul.FilterProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * @Description: java类作用描述
 * @Author: yh
 * @CreateDate: 2018/2/26 16:05
 */
@SpringCloudApplication
@EnableZuulProxy
public class ZuulGateWayApplication {
    public static void main(String[] args) {

        SpringApplication.run(ZuulGateWayApplication.class, args);
    }

    @Bean
    public AccessFilter accessFilter() {
        return new AccessFilter();
    }
}
